<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title></title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/chili-1.7.pack.js"></script>
<script type="text/javascript" src="js/jquery.easing.js"></script>
<script type="text/javascript" src="js/jquery.dimensions.js"></script>
<script type="text/javascript" src="js/jquery.accordion.js"></script>
<script language="javascript">
	jQuery().ready(function() {
		jQuery('#navigation').accordion({
			header : '.head',
			navigation1 : true,
			event : 'click',
			fillSpace : true,
			animated : 'bounceslide'
		});
		
		//点击一级菜单“班级管理”（教师）
		/**
		jQuery('#teach_class_management').click(function(){
			parent.rightFrame.location.href="./teacher/showClass.jsp?page=1";
		});
		*/		
	});
</script>
<style type="text/css">
<!--
body {
	margin: 0px;
	padding: 0px;
	font-size: 12px;
}

#navigation {
	margin: 0px;
	padding: 0px;
	width: 147px;
}

#navigation a.head {
	cursor: pointer;
	background: url(images/main_34.gif) no-repeat scroll;
	display: block;
	font-weight: bold;
	margin: 0px;
	padding: 5px 0 5px;
	text-align: center;
	font-size: 12px;
	text-decoration: none;
	color: #000000;
}

#navigation ul {
	border-width: 0px;
	margin: 0px;
	padding: 0px;
	text-indent: 0px;
}

#navigation li {
	list-style: none;
	display: inline;
}

#navigation li li a {
	display: block;
	font-size: 12px;
	text-decoration: none;
	text-align: center;
	padding: 3px;
}

#navigation li li a:hover {
	background: url(images/tab_bg.gif) repeat-x;
	border: solid 1px #adb9c2;
}
-->
</style>

</head>

<body>
	<!-- 学生菜单栏 -->
	<s:if test="#session.roleId==1">
		<div style="height:100%;">
			<ul id="navigation">
				<li><a class="head">班级管理</a>
					<ul>
						<li><a href="classShow_student?intPage=1" target="rightFrame">我的班级</a></li>
						<li><a href="classChooseShow?intPage=1" target="rightFrame">选择班级</a></li>
					</ul></li>
				<li><a class="head">作业管理</a>
					<ul>
						<li><a href="homeworkShow_class?intPage=1"
							target="rightFrame">查看作业</a></li>
					</ul></li>
				<li><a class="head">资源管理</a>
					<ul>
						<li><a href="resourceShow_class?intPage=1" target="rightFrame">查看资源</a></li>					
					</ul></li>
				<li><a class="head">答疑&通知</a>
					<ul>
						<li><a href="informShow_class?intPage=1" target="rightFrame">查看通知</a></li>
						<li><a href="questionShow_class?intPage=1" target="rightFrame">查看问题</a></li>
					</ul></li>
			</ul>
		</div>
	</s:if>
	<!-- 教师菜单栏 -->
	<s:elseif test="#session.roleId==2">
		<div style="height:100%;">
			<ul id="navigation">
				<li><a class="head">班级管理</a>
					<ul>
						<li><a href="classShow_teacher?intPage=1" target="rightFrame">我的班级</a></li>
						<li><a href="teacher/classAdd.jsp" target="rightFrame">新增班级</a></li>
					</ul></li>
				<li><a class="head">作业管理</a>
					<ul>
						<li><a href="homeworkShow_class?intPage=1" target="rightFrame">查看作业</a></li>
					</ul></li>
				<li><a class="head">资源管理</a>
					<ul>
						<li><a href="resourceShow_class?intPage=1" target="rightFrame">查看资源</a></li>
					</ul></li>
				<li><a class="head">答疑&通知</a>
					<ul>
						<li><a href="informShow_class?intPage=1" target="rightFrame">查看通知</a></li>
						<li><a href="questionShow_class?intPage=1" target="rightFrame">解答问题</a></li>
					</ul></li>
			</ul>
		</div>
	</s:elseif>
	<!-- 管理员菜单栏 -->
	<s:elseif test="#session.roleId==3">
		<div style="height:100%;">
			<ul id="navigation">
				<li><a class="head">班级管理</a>
					<ul>
						<li><a href="classShow_admin?intPage=1" target="rightFrame">班级管理</a></li>
						<li><a href="userAuditing" target="rightFrame">用户审核</a></li>
					</ul></li>
				<li><a class="head">作业管理</a>
					<ul>
						<li><a href="./images/ts.gif" target="rightFrame">作业管理</a></li>
					</ul></li>
				<li><a class="head">资源管理</a>
					<ul>
						<li><a href="./images/ts.gif" target="rightFrame">资源管理</a></li>
					</ul></li>
				<li><a class="head">答疑&通知</a>
					<ul>
						<li><a href="./images/ts.gif" target="rightFrame">答疑管理</a></li>
						<li><a href="./images/ts.gif" target="rightFrame">通知管理</a></li>
					</ul></li>
			</ul>
		</div>
	</s:elseif>
</body>
</html>
